/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-06-04     jerry       the first version
 */
#ifndef APPLICATIONS_GET_TEST_MAIN_H_
#define APPLICATIONS_GET_TEST_MAIN_H_



#include "ptc_06.h"


extern rt_device_t camera_serial;
extern struct rt_messagequeue camera_rx_mq;
extern PTC06 camera;

#define PHOTO_BUF_SIZE (1024)
int init(void);

/**
 * 用栈来储存已缓存的图像信息
 * @param CONTENT       已缓存的内容
 * @param cached_len    已缓存的长度
 */
typedef struct
{
    uint8_t CONTENT[PHOTO_BUF_SIZE];
    size_t cached_len;
} photo_buf_struct;
extern photo_buf_struct photo_buf;
void cache(uint8_t content);


#endif /* APPLICATIONS_GET_TEST_MAIN_H_ */
